import { axios } from '@/utils/request'

/**
 * 查询开课轮次
 *
 * @author kongxm
 * @date 2022-07-07 22:10:08
 */
export function coursePublishFrequencyPage(parameter) {
  return axios({
    url: '/coursePublishFrequency/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 开课轮次列表
 *
 * @author kongxm
 * @date 2022-07-07 22:10:08
 */
export function coursePublishFrequencyList(parameter) {
  return axios({
    url: '/coursePublishFrequency/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加开课轮次
 *
 * @author kongxm
 * @date 2022-07-07 22:10:08
 */
export function coursePublishFrequencyAdd(parameter) {
  return axios({
    url: '/coursePublishFrequency/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑开课轮次
 *
 * @author kongxm
 * @date 2022-07-07 22:10:08
 */
export function coursePublishFrequencyEdit(parameter) {
  return axios({
    url: '/coursePublishFrequency/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除开课轮次
 *
 * @author kongxm
 * @date 2022-07-07 22:10:08
 */
export function coursePublishFrequencyDelete(parameter) {
  return axios({
    url: '/coursePublishFrequency/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出开课轮次
 *
 * @author kongxm
 * @date 2022-07-07 22:10:08
 */
export function coursePublishFrequencyExport(parameter) {
  return axios({
    url: '/coursePublishFrequency/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
